package concurrent;

/**
 * @author 26029
 * @date 2025/4/25
 * @description
 */
public class LearnFinal {
    public static void main(String[] args) {
        printMsg("hello world");
    }

    public static void printMsg(final String msg) {
        Printer printer = new Printer() {
            @Override
            public void print() {
                System.out.println(msg);
            }
        };
        printer.print();
    }
}

interface Printer {
    void print();
}
